package co.edu.unal.bioingenium.kbmed.knowledge.mapping.vo;

/**
 *
 * @author Alejandro
 */
public class DescriptorData {

    private String conceptId;
    private String category;
    private short descriptorTokens;

    public DescriptorData() {
    }

    public DescriptorData(String conceptId, String category, short descriptorTokens) {
        this.conceptId = conceptId;
        this.category = category;
        this.descriptorTokens = descriptorTokens;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getConceptId() {
        return conceptId;
    }

    public void setConceptId(String conceptId) {
        this.conceptId = conceptId;
    }

    public short getDescriptorTokens() {
        return descriptorTokens;
    }

    public void setDescriptorTokens(short descriptorTokens) {
        this.descriptorTokens = descriptorTokens;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final DescriptorData other = (DescriptorData) obj;
        if ((this.conceptId == null) ? (other.conceptId != null) : !this.conceptId.equals(other.conceptId)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 47 * hash + (this.conceptId != null ? this.conceptId.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("ConceptData{" + "conceptId=").append(conceptId).append(", category=").append(category).append(", descriptorTokens=").append(descriptorTokens).append('}');
        return stringBuilder.toString();
    }
}
